import Payment.Size.SizeBig;
import Payment.Size.SizeSmall;
import Payment.Size.AbstractSize;
import Payment.Color.RedColor;
import Payment.Color.BlackColor;
import Payment.Color.IColor;

public class Main {
    public static void main(String[] args) {
        System.out.println("Hello world!");

        //使用桥接模式,无论对颜色式还是笔号，两个维度进行拓展都十分方便（一个用类的继承，一个用接口实现）
        IColor blackPen = new BlackColor();
        IColor redPen = new RedColor();

        AbstractSize Bigpen= new SizeBig(redPen);

        Bigpen.Draw("凯哥");


    }
}